package com.gxa.entity.community;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjl
 * @since 2022-10-11 10:05:39
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_owner")
@ApiModel(value = "Owner对象", description = "")
public class Owner implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value ="业主编号")
    @TableField("owner_num")
    private String ownerNum;

    @ApiModelProperty(value ="业主姓名")
    @TableField("owner_name")
    private String ownerName;

    @ApiModelProperty(value ="性别（0：女，1：男）")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value ="人员类型（0：租户，1家庭成员，2：业主）")
    @TableField("owner_type")
    private Integer ownerType;

    @ApiModelProperty(value ="房屋编号（所属房屋）")
    @TableField("house_num")
    private String houseNum;

//    @ApiModelProperty(value = "业主的房屋位置（几栋几楼几号）")
//    private String houseAddress;

    @ApiModelProperty(value ="联系电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value ="证件号码")
    @TableField("id_number")
    private String idNumber;

    @ApiModelProperty(value ="入住时间")
    @TableField("checkin_time")
    private Date checkinTime;

//    @ApiModelProperty(value = "业主的紧急联系人")
//    private String urgentUser;
//
//    @ApiModelProperty(value = "业主的紧急联系人电话号码")
//    private String urgentPhone;

    @TableLogic(value = "0" ,delval ="1")
    @TableField("deleted")
    private Integer deleted;


}
